<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class implements a data-flow analysis on a given control-flow graph.  
 <a href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4_1_1_read_after_write_pair.html">ReadAfterWritePair</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This class describes a write/read location pair which can be eliminated  <a href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4_1_1_read_after_write_pair.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2befb94ddad5e22068310af0bd551918"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a2befb94ddad5e22068310af0bd551918">DataflowAnalyzer</a> (ControlFlowGraph&lt; Ti &gt; cfg, int numLocals)</td></tr>
<tr class="memdesc:a2befb94ddad5e22068310af0bd551918"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new instance for a given control-flow graph  <a href="#a2befb94ddad5e22068310af0bd551918">More...</a><br/></td></tr>
<tr class="separator:a2befb94ddad5e22068310af0bd551918"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac21040b373683389a8824e5ee12ae33a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#ac21040b373683389a8824e5ee12ae33a">Run</a> ()</td></tr>
<tr class="memdesc:ac21040b373683389a8824e5ee12ae33a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes data-flow analysis  <a href="#ac21040b373683389a8824e5ee12ae33a">More...</a><br/></td></tr>
<tr class="separator:ac21040b373683389a8824e5ee12ae33a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c90b24a9513b5ecebc5967100f11890"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a9c90b24a9513b5ecebc5967100f11890">IsReadAfterWrite</a> (int writePoint, out int readPoint)</td></tr>
<tr class="memdesc:a9c90b24a9513b5ecebc5967100f11890"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queries whether there is a unique read-after-write dependency  <a href="#a9c90b24a9513b5ecebc5967100f11890">More...</a><br/></td></tr>
<tr class="separator:a9c90b24a9513b5ecebc5967100f11890"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8919f404602dea5260556a3ba6126590"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a8919f404602dea5260556a3ba6126590">IsEliminable</a> (int localIndex)</td></tr>
<tr class="memdesc:a8919f404602dea5260556a3ba6126590"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queries whether a certain local variable may be eliminated, i.e. by replacing it with its right-hand-side expression  <a href="#a8919f404602dea5260556a3ba6126590">More...</a><br/></td></tr>
<tr class="separator:a8919f404602dea5260556a3ba6126590"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a521e7a778798a49dd7e22530389ce367"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a521e7a778798a49dd7e22530389ce367">IsWrittenAndNeverRead</a> (int writePoint)</td></tr>
<tr class="memdesc:a521e7a778798a49dd7e22530389ce367"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queries whether a write access is actually superfluous because the assigned value is never read  <a href="#a521e7a778798a49dd7e22530389ce367">More...</a><br/></td></tr>
<tr class="separator:a521e7a778798a49dd7e22530389ce367"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14766d48f32f14ed78202e71e6f6c382"><td class="memItemLeft" align="right" valign="top">IEnumerable&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a14766d48f32f14ed78202e71e6f6c382">GetAssignmentsForReadPoint</a> (int localIndex, int ilIndex)</td></tr>
<tr class="memdesc:a14766d48f32f14ed78202e71e6f6c382"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves possible IL locations which write a to given local variable and reach a specified IL location.  <a href="#a14766d48f32f14ed78202e71e6f6c382">More...</a><br/></td></tr>
<tr class="separator:a14766d48f32f14ed78202e71e6f6c382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2b928ae74ec87246415e51f4d471e06"><td class="memItemLeft" align="right" valign="top">IEnumerable&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#ad2b928ae74ec87246415e51f4d471e06">GetAssignmentsForReadPointFrom</a> (int localIndex, int preIlIndex)</td></tr>
<tr class="memdesc:ad2b928ae74ec87246415e51f4d471e06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves possible IL locations which write to a given local variable and reach all instructions which follow a specified IL location.  <a href="#ad2b928ae74ec87246415e51f4d471e06">More...</a><br/></td></tr>
<tr class="separator:ad2b928ae74ec87246415e51f4d471e06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe18ea2899d84d9d144f0524f76182f9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#abe18ea2899d84d9d144f0524f76182f9">GetNumRenamings</a> (int localIndex)</td></tr>
<tr class="memdesc:abe18ea2899d84d9d144f0524f76182f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the number of renamed variables which emerged from a local variable.  <a href="#abe18ea2899d84d9d144f0524f76182f9">More...</a><br/></td></tr>
<tr class="separator:abe18ea2899d84d9d144f0524f76182f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16a9ec17258b75d88f2c89db78937f5a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a16a9ec17258b75d88f2c89db78937f5a">GetRenamingIndex</a> (int localIndex, int ilIndex)</td></tr>
<tr class="memdesc:a16a9ec17258b75d88f2c89db78937f5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the renamed variable (sub-)index which is accessed at a given program location.  <a href="#a16a9ec17258b75d88f2c89db78937f5a">More...</a><br/></td></tr>
<tr class="separator:a16a9ec17258b75d88f2c89db78937f5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe40cece48e4059c3de71f89d246b2a3"><td class="memItemLeft" align="right" valign="top">List&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#afe40cece48e4059c3de71f89d246b2a3">GetUsePointsOfRefPoint</a> (int ilIndex)</td></tr>
<tr class="memdesc:afe40cece48e4059c3de71f89d246b2a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the program locations which derefence a local variable which is referenced at a given program location.  <a href="#afe40cece48e4059c3de71f89d246b2a3">More...</a><br/></td></tr>
<tr class="separator:afe40cece48e4059c3de71f89d246b2a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a182e8f1c8958fa8c276ee171f34e07eb"><td class="memItemLeft" align="right" valign="top">IInstructionInfo&lt; Ti &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a182e8f1c8958fa8c276ee171f34e07eb">InstructionInfo</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a182e8f1c8958fa8c276ee171f34e07eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Instruction information service  <a href="#a182e8f1c8958fa8c276ee171f34e07eb">More...</a><br/></td></tr>
<tr class="separator:a182e8f1c8958fa8c276ee171f34e07eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaaa6b9f08d1db135f00e08a4d9de66e"><td class="memItemLeft" align="right" valign="top">IExtendedInstructionInfo&lt; Ti &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#acaaa6b9f08d1db135f00e08a4d9de66e">XInstructionInfo</a><code> [get, set]</code></td></tr>
<tr class="memdesc:acaaa6b9f08d1db135f00e08a4d9de66e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extended instruction information service  <a href="#acaaa6b9f08d1db135f00e08a4d9de66e">More...</a><br/></td></tr>
<tr class="separator:acaaa6b9f08d1db135f00e08a4d9de66e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac211949463f49a382181865b2c524b60"><td class="memItemLeft" align="right" valign="top">ControlFlowGraph&lt; Ti &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#ac211949463f49a382181865b2c524b60">Code</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ac211949463f49a382181865b2c524b60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Control-flow graph the be analyzed  <a href="#ac211949463f49a382181865b2c524b60">More...</a><br/></td></tr>
<tr class="separator:ac211949463f49a382181865b2c524b60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1444066dc5f4f36edb5d991d4ef60036"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a1444066dc5f4f36edb5d991d4ef60036">DetectReadAfterWrite</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a1444066dc5f4f36edb5d991d4ef60036"><td class="mdescLeft">&#160;</td><td class="mdescRight">Detect read-after-write dependencies (and allow to eliminate them if possible)  <a href="#a1444066dc5f4f36edb5d991d4ef60036">More...</a><br/></td></tr>
<tr class="separator:a1444066dc5f4f36edb5d991d4ef60036"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0ec8d42ae834a89c9449a4f4dd3742e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#ae0ec8d42ae834a89c9449a4f4dd3742e">DetectWriteAndNeverRead</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ae0ec8d42ae834a89c9449a4f4dd3742e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Detect writes to variables which are never read (and allow to eliminate them if possible)  <a href="#ae0ec8d42ae834a89c9449a4f4dd3742e">More...</a><br/></td></tr>
<tr class="separator:ae0ec8d42ae834a89c9449a4f4dd3742e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09649ef5921e6a0684fe3101560a351d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a09649ef5921e6a0684fe3101560a351d">DoNotOptimizeAcrossBasicBlocks</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a09649ef5921e6a0684fe3101560a351d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disallow optimizations where read and write access reside in different basic blocks  <a href="#a09649ef5921e6a0684fe3101560a351d">More...</a><br/></td></tr>
<tr class="separator:a09649ef5921e6a0684fe3101560a351d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d2988c24ebb9f6cf287b9929c450655"><td class="memItemLeft" align="right" valign="top">ISet&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#a5d2988c24ebb9f6cf287b9929c450655">WrittenAndNeverReadPoints</a><code> [get]</code></td></tr>
<tr class="memdesc:a5d2988c24ebb9f6cf287b9929c450655"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all locations of superfluous write accesses  <a href="#a5d2988c24ebb9f6cf287b9929c450655">More...</a><br/></td></tr>
<tr class="separator:a5d2988c24ebb9f6cf287b9929c450655"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad563b282b77662885a2b565feed9f4b2"><td class="memItemLeft" align="right" valign="top">ISet&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html#ad563b282b77662885a2b565feed9f4b2">EliminableLocals</a><code> [get]</code></td></tr>
<tr class="memdesc:ad563b282b77662885a2b565feed9f4b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all eliminable local variables  <a href="#ad563b282b77662885a2b565feed9f4b2">More...</a><br/></td></tr>
<tr class="separator:ad563b282b77662885a2b565feed9f4b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class implements a data-flow analysis on a given control-flow graph. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Ti</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>Ti</em></td><td>&#160;:</td><td valign="top"><em><a class="el" href="interface_system_sharp_1_1_analysis_1_1_i_instruction.html">IInstruction</a></em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00164">164</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2befb94ddad5e22068310af0bd551918"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.DataflowAnalyzer </td>
          <td>(</td>
          <td class="paramtype">ControlFlowGraph&lt; Ti &gt;&#160;</td>
          <td class="paramname"><em>cfg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numLocals</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a new instance for a given control-flow graph </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cfg</td><td>control-flow graph</td></tr>
    <tr><td class="paramname">numLocals</td><td>number of local variables</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00313">313</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a14766d48f32f14ed78202e71e6f6c382"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IEnumerable&lt;int&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.GetAssignmentsForReadPoint </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ilIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves possible IL locations which write a to given local variable and reach a specified IL location. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>The local variable index</td></tr>
    <tr><td class="paramname">ilIndex</td><td>An instruction index (not byte offset!) whose reaching variable definitions should be retrieved</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An enumeration of IL instruction indices (not byte offsets) which write to the variable in the given context</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00698">698</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad2b928ae74ec87246415e51f4d471e06"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IEnumerable&lt;int&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.GetAssignmentsForReadPointFrom </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>preIlIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves possible IL locations which write to a given local variable and reach all instructions which follow a specified IL location. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>The local variable index</td></tr>
    <tr><td class="paramname">preIlIndex</td><td>The instruction index (not byte offset!)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An enumeration of IL instruction indices (not byte offsets) which write to the variable in the given context</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00709">709</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="abe18ea2899d84d9d144f0524f76182f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.GetNumRenamings </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the number of renamed variables which emerged from a local variable. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>The local variable index</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of renamed variables</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00719">719</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a16a9ec17258b75d88f2c89db78937f5a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.GetRenamingIndex </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ilIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the renamed variable (sub-)index which is accessed at a given program location. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ilIndex</td><td>The local vairable index</td></tr>
    <tr><td class="paramname">ilIndex</td><td>The program location (IL index, not offset) which accesses the local variable.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The renaming index</dd></dl>
<p>The variable name is determined uniquely by the tuple (localIndex, renamingIndex) where localIndex is the index of the local variable, and renamingIndex is the value returned by this method. </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00740">740</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="afe40cece48e4059c3de71f89d246b2a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;int&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.GetUsePointsOfRefPoint </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ilIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the program locations which derefence a local variable which is referenced at a given program location. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ilIndex</td><td>A program location which references (loads the address of) a local variable</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The set of program location which actually access the variable by the loaded address</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00755">755</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a8919f404602dea5260556a3ba6126590"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.IsEliminable </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Queries whether a certain local variable may be eliminated, i.e. by replacing it with its right-hand-side expression </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>index of local variable</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether given variable is eliminable</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00661">661</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a9c90b24a9513b5ecebc5967100f11890"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.IsReadAfterWrite </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>writePoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out int&#160;</td>
          <td class="paramname"><em>readPoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Queries whether there is a unique read-after-write dependency </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">writePoint</td><td>instruction index of write access</td></tr>
    <tr><td class="paramname">readPoint</td><td>instruction index of read access, undefined if there is no unique dependency</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether there is a unique read-after-write dependency</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00651">651</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a521e7a778798a49dd7e22530389ce367"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.IsWrittenAndNeverRead </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>writePoint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Queries whether a write access is actually superfluous because the assigned value is never read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">writePoint</td><td>index of writing instruction</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether write access is superfluous</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00671">671</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac21040b373683389a8824e5ee12ae33a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes data-flow analysis </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00626">626</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="ac211949463f49a382181865b2c524b60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ControlFlowGraph&lt;Ti&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.Code</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Control-flow graph the be analyzed </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00221">221</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a1444066dc5f4f36edb5d991d4ef60036"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.DetectReadAfterWrite</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Detect read-after-write dependencies (and allow to eliminate them if possible) </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00326">326</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ae0ec8d42ae834a89c9449a4f4dd3742e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.DetectWriteAndNeverRead</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Detect writes to variables which are never read (and allow to eliminate them if possible) </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00331">331</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a09649ef5921e6a0684fe3101560a351d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.DoNotOptimizeAcrossBasicBlocks</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disallow optimizations where read and write access reside in different basic blocks </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00336">336</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad563b282b77662885a2b565feed9f4b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ISet&lt;int&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.EliminableLocals</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all eliminable local variables </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00688">688</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a182e8f1c8958fa8c276ee171f34e07eb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IInstructionInfo&lt;Ti&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.InstructionInfo</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Instruction information service </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00211">211</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a5d2988c24ebb9f6cf287b9929c450655"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ISet&lt;int&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.WrittenAndNeverReadPoints</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all locations of superfluous write accesses </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00680">680</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="acaaa6b9f08d1db135f00e08a4d9de66e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IExtendedInstructionInfo&lt;Ti&gt; SystemSharp.Analysis.DataflowAnalyzer&lt; Ti &gt;.XInstructionInfo</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Extended instruction information service </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00216">216</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_system_sharp.html">SystemSharp</a></li><li class="navelem"><a class="el" href="namespace_system_sharp_1_1_analysis.html">Analysis</a></li><li class="navelem"><a class="el" href="class_system_sharp_1_1_analysis_1_1_dataflow_analyzer_3_01_ti_01_4.html">DataflowAnalyzer< Ti ></a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:51 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
